﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Person
    {
        private int id;
        private string name;
        private char sex;
        private int cardid;
        private int tel;

        public Person() { }

        public Person(int id, string name, char sex, int cardid, int tel)
        {
            this.id = id;
            this.name = name;
            this.sex = sex;
            this.cardid = cardid;
            this.tel = tel;
        }

        public void Hello()
        {
            Console.WriteLine("ID:{0},Name:{1},Sex:{2},Cardid:{3},Tel:{4}", this.id, this.name, this.sex, this.cardid, this.tel);
        }

        public int Id
        {
            get { return this.id; }
            set { this.id = value; }
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public char Sex
        {
            get { return this.sex; }
            set { this.sex = value; }
        }
        public int Cardid
        {
            get { return this.cardid; }
            set { this.cardid = value; }
        }
        public int Tel
        {
            get { return this.tel; }
            set { this.tel = value; }
        }


    }
}
